package fr.cdj.thebox.client.events;

import com.google.gwt.event.shared.GwtEvent;

public class SortFilesRequestEvent extends GwtEvent<SortFilesRequestHandler> {

	private static Type<SortFilesRequestHandler> type;

	public SortFilesRequestEvent() {
	}

	public static Type<SortFilesRequestHandler> getType() {
		if (type == null) {
			type = new Type<SortFilesRequestHandler>();
		}
		return type;
	}

	@Override
	public Type<SortFilesRequestHandler> getAssociatedType() {
		return getType();
	}

	@Override
	protected void dispatch(SortFilesRequestHandler handler) {
		handler.onSortFilesRequest(this);
	}

}
